<div class="dialog-body">
    <ul class="dialog-body-ul">
        <li class="dialog-body-li">
            <div class="dialog-body-item">
                <div class="dialog-label">维修单号</div>
                <div class="dialog-content">
                    <input type="text" class="layui-input layui-disabled" ng-model="ngDialogData.repair.rpRepairNo" ng-readonly="true" />
                </div>
            </div>
            <div class="dialog-body-item">
                <div class="dialog-label">维修类型</div>
                <div class="dialog-content" ng-show="ngDialogData.dropDownDefault.repairResult.value != constant.repairResult.qualified">
                    <ui-select ng-model="ngDialogData.dropDownDefault.repairType">
                        <ui-select-match>
                            <span ng-bind="$select.selected.name"></span>
                        </ui-select-match>
                        <ui-select-choices repeat="repairType in (ngDialogData.repairType | filter: $select.search) track by repairType.value">
                            <span ng-bind="repairType.name"></span>
                        </ui-select-choices>
                        <ui-select-no-choice>
                            没有加载到数据
                        </ui-select-no-choice>
                    </ui-select>
                </div>
                <div class="dialog-content" ng-show="ngDialogData.dropDownDefault.repairResult.value == constant.repairResult.qualified">
                    <input type="text" class="layui-input layui-disabled" ng-model="ngDialogData.dropDownDefault.repairType.name" ng-readonly="true"/>
                </div>
            </div>
            <div class="dialog-body-item">
                <div class="dialog-label">质损单号</div>
                <div class="dialog-content">
                    <input type="text" class="layui-input layui-disabled" ng-model="ngDialogData.repair.rpZsNo"/>
                </div>
            </div>
        </li>

        <li class="dialog-body-li">
            <div class="dialog-body-item">
                <div class="dialog-label">维修出库单号</div>
                <div class="dialog-content">
                    <input type="text" class="layui-input layui-disabled" ng-model="ngDialogData.repair.rpOutbillNo"/>
                </div>
            </div>
            <div class="dialog-body-item">
                <div class="dialog-label">底盘号</div>
                <div class="dialog-content">
                    <input type="text" class="layui-input layui-disabled" ng-model="ngDialogData.repair.rpVin"/>
                </div>
            </div>
            <div class="dialog-body-item">
                <div class="dialog-label">运输单号</div>
                <div class="dialog-content">
                    <input type="text" class="layui-input layui-disabled" ng-model="ngDialogData.repair.rpWaybillNo"/>
                </div>
            </div>
        </li>

        <li class="dialog-body-li">
            <div class="dialog-body-item">
                <div class="dialog-label">货主</div>
                <div class="dialog-content">
                    <input type="text" class="layui-input layui-disabled" ng-model="ngDialogData.repair.rpCustomerNo"/>
                </div>
            </div>
            <div class="dialog-body-item">
                <div class="dialog-label">目的地</div>
                <div class="dialog-content">
                    <input type="text" class="layui-input layui-disabled" ng-model="ngDialogData.repair.rpDest"/>
                </div>
            </div>
            <div class="dialog-body-item">
                <div class="dialog-label">货物说明</div>
                <div class="dialog-content">
                    <input type="text" class="layui-input layui-disabled" ng-model="ngDialogData.repair.rpGoodsExplain"/>
                </div>
            </div>
        </li>

        <li class="dialog-body-li">
            <div class="dialog-body-item">
                <div class="dialog-label">检验结果</div>
                <div class="dialog-content" ng-show="ngDialogData.dropDownDefault.repairResult.value != constant.repairResult.qualified">
                    <ui-select ng-model="ngDialogData.dropDownDefault.inspectionResults">
                        <ui-select-match>
                            <span ng-bind="$select.selected.name"></span>
                        </ui-select-match>
                        <ui-select-choices repeat="inspectionResults in (ngDialogData.inspectionResults | filter: $select.search) track by inspectionResults.value">
                            <span ng-bind="inspectionResults.name"></span>
                        </ui-select-choices>
                        <ui-select-no-choice>
                            没有加载到数据
                        </ui-select-no-choice>
                    </ui-select>
                </div>
                <div class="dialog-content" ng-show="ngDialogData.dropDownDefault.repairResult.value == constant.repairResult.qualified">
                    <input type="text" class="layui-input layui-disabled" ng-model="ngDialogData.dropDownDefault.inspectionResults.name" ng-readonly="true"/>
                </div>
            </div>
            <div class="dialog-body-item">
                <div class="dialog-label">车辆问题描述</div>
                <div class="dialog-content">
                    <input type="text" class="layui-input layui-disabled" ng-model="ngDialogData.repair.rpProblemDescribe"/>
                </div>
            </div>
            <div class="dialog-body-item">
                <div class="dialog-label">责任方</div>
                <div class="dialog-content">
                    <input type="text" class="layui-input layui-disabled" ng-model="ngDialogData.repair.rpResponsibleParty"/>
                </div>
            </div>
        </li>

        <li class="dialog-body-li">
            <div class="dialog-body-item">
                <div class="dialog-label">维修方</div>
                <div class="dialog-content" ng-show="ngDialogData.dropDownDefault.repairResult.value == constant.repairResult.qualified">
                    <input type="text" class="layui-input layui-disabled" ng-model="ngDialogData.repair.rpRepairParty" ng-readonly="true"/>
                </div>
                <div class="dialog-content" ng-show="ngDialogData.dropDownDefault.repairResult.value != constant.repairResult.qualified">
                    <input type="text" class="layui-input"  ng-model="ngDialogData.repairChange.rpRepairParty"/>
                </div>
            </div>
            <div class="dialog-body-item">
                <div class="dialog-label">维修结果</div>
                <div class="dialog-content">
                    <ui-select ng-model="ngDialogData.dropDownDefault.repairResult" on-select="repairResultChange($item)">
                        <ui-select-match>
                            <span ng-bind="$select.selected.name"></span>
                        </ui-select-match>
                        <ui-select-choices repeat="repairResult in (ngDialogData.repairResult | filter: $select.search) track by repairResult.value">
                            <span ng-bind="repairResult.name"></span>
                        </ui-select-choices>
                        <ui-select-no-choice>
                            没有加载到数据
                        </ui-select-no-choice>
                    </ui-select>
                </div>
            </div>
            <div class="dialog-body-item">
                <div class="dialog-label">维修完成时间</div>
                <div class="dialog-content">
                    <input type="text" lay-verify="date" placeholder="yyyy-mm-dd" ng-model="ngDialogData.repair.rpEndDate" ng-click="Tools.modelAssignment($event,this)" autocomplete="off" class="layui-input" onclick="layui.laydate({elem: this,format:'YYYY-MM-DD',choose : angular.element(this).scope().Tools.modelAssignment,scope:angular.element(this).scope()})">
                </div>
            </div>
        </li>
        <li class="dialog-body-li">
            <div class="dialog-body-item">
                <div class="dialog-label">备注</div>
                <div class="dialog-content">
                    <textarea cols="61" rows="5" ng-model="ngDialogData.repair.remark"></textarea>
                </div>
            </div>
        </li>
    </ul>
</div>

<div class="dialog-toolbar">
    <button class="layui-btn" ng-click="copyAddClick()" ng-show="ngDialogData.dropDownDefault.repairResult.value != constant.repairResult.qualified">复制并新增</button>
    <button class="layui-btn" ng-click="saveOrUpdaterepairClick()">保存</button>
    <button class="layui-btn" ng-click="closeThisDialog()">取消</button>
</div>